package com.hsnn.medstgmini.pro.project.model.form;

import com.hsnn.medstgmini.Constants;
import com.hsnn.medstgmini.util.DicSysUtil;

/**
 * @category 生产企业招标目录管理
 * @author 蔡春龙
 * @date 2015年8月25日
 */
public class ProdBidCatalogForm {

	private String projId; // 项目id
	private String projName; // 项目名称
	private String qualityspecId; // 品规id
	private String qualityspecCode; // 药品编码
	private String qualityspecName; // 通用名
	private String form; // 剂型
	private String spec; // 规格
	private String drugcatalogName; // 药物目录名称
	private Integer attribute; // 药物属性
	private String attributeName; // 药物属性名称
	private String qualityspecClass; // 药物分类
	private String qualityspecClassName; // 药物分类名称
	private Integer qualityspecIndex; // 药物序号

	public String getProjId() {
		return projId;
	}

	public void setProjId(String projId) {
		this.projId = projId;
	}

	public String getProjName() {
		return projName;
	}

	public void setProjName(String projName) {
		this.projName = projName;
	}

	public String getQualityspecId() {
		return qualityspecId;
	}

	public void setQualityspecId(String qualityspecId) {
		this.qualityspecId = qualityspecId;
	}

	public String getQualityspecCode() {
		return qualityspecCode;
	}

	public void setQualityspecCode(String qualityspecCode) {
		this.qualityspecCode = qualityspecCode;
	}

	public String getQualityspecName() {
		return qualityspecName;
	}

	public void setQualityspecName(String qualityspecName) {
		this.qualityspecName = qualityspecName;
	}

	public String getForm() {
		return form;
	}

	public void setForm(String form) {
		this.form = form;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getDrugcatalogName() {
		return drugcatalogName;
	}

	public void setDrugcatalogName(String drugcatalogName) {
		this.drugcatalogName = drugcatalogName;
	}

	public Integer getAttribute() {
		return attribute;
	}

	public void setAttribute(Integer attribute) {
		this.attribute = attribute;
	}

	public String getAttributeName() {
		if (attribute != null) {
			if ("0".equals(attribute)) {
				attributeName = "国家";
			} else if ("1".equals(attribute)) {
				attributeName = "省增补";
			}
		}
		return attributeName;
	}

	public void setAttributeName(String attributeName) {
		this.attributeName = attributeName;
	}

	public String getQualityspecClass() {
		return qualityspecClass;
	}

	public void setQualityspecClass(String qualityspecClass) {
		this.qualityspecClass = qualityspecClass;
	}

	public String getQualityspecClassName() {
		if (qualityspecClass != null) {
			qualityspecClassName = DicSysUtil.getValueByClassCodeAndDicCode(
					Constants.QUALITYSPEC_CLASS, qualityspecClass);
		}
		return qualityspecClassName;
	}

	public void setQualityspecClassName(String qualityspecClassName) {
		this.qualityspecClassName = qualityspecClassName;
	}

	public Integer getQualityspecIndex() {
		return qualityspecIndex;
	}

	public void setQualityspecIndex(Integer qualityspecIndex) {
		this.qualityspecIndex = qualityspecIndex;
	}

}
